package com.zqh.myfmmall.clients;

import com.zqh.myfmmall.fallback.OrderQueryClientFallback;
import com.zqh.myfmmall.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description :
 * @Author :kono淇杭哒、
 * @Create 2022-03-01 23:12
 */
@FeignClient(value = "order-query",fallbackFactory = OrderQueryClientFallback.class)
public interface OrderQueryClient{
    @GetMapping("order/getStatusById/{id}")
    Result getStatusById(@PathVariable("id") String id);

    @GetMapping("order/pageByStatus/{pageNum}/{pageSize}/{status}/{uId}")
    Result pageByStatus (@PathVariable("pageNum") Integer pageNum,
                @PathVariable("pageSize") Integer pageSize,
                @PathVariable("status") Integer status,
                @PathVariable("uId") String uId);

    @GetMapping("order/counts/{uId}")
    Result counts(@PathVariable("uId") String uId);
}
